package cn.mumzone.pos.presenter.contract;

import cn.mumzone.basic.mvp.BasePresenter;
import cn.mumzone.basic.mvp.BaseView;
import cn.mumzone.basic.net.response.PageListResponse;
import cn.mumzone.pos.model.BillDetailEntity;
import cn.mumzone.pos.model.BillInfoListBean;

/**
 * Created By Dlx
 * on 2019/6/22
 */
public interface BillsItemContract {
    interface View extends BaseView {
        void onDataReceived(PageListResponse<BillInfoListBean> data, boolean refresh);

        void onSearchDataReceived(PageListResponse<BillInfoListBean> data, boolean refresh);

        void onPrintDataReceived(BillDetailEntity billDetailEntity);

        void showToast(String str);

        void onNoMore(boolean tof);

        void onSearchEvent(String searchKey);

        void noSuchSearchResult();
    }

    interface Presenter extends BasePresenter<View> {
        void getBillDatas(String dateTime, int enterType, String searchKey, int pageNum);

        void getGoodsBillDetailForPrint(String saleId, String orderType);

    }
}
